package com.bootdo.stock.dao;

import com.bootdo.stock.domain.StockDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 库存表

 * @author clq
 * @date 2018-05-14 18:10:50
 */
@Mapper
public interface StockDao {

	List<StockDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);

	List<StockDO> listP(Map<String,Object> map);
	
	int countP(Map<String,Object> map);
	
	int save(StockDO stock);
	
	int update(Map<String,Object> map);
	
	int remove(Long goodsId);
	
	int getByGsId(Long goodsId);

	StockDO getStockByGsId(Long goodsId);
	
}
